]>
Commit | Line | Data |
---|---|---|
5be2680a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
389c596f | 5 | Summary: C++ interface for working with XML files |
1e547f6f | 6 | Summary(pl.UTF-8): Interfejs C++ do pracy z plikami XML |
5be2680a | 7 | Name: libxml++2 |
bbc5e380 | 8 | Version: 2.42.0 |
6d50d942 | 9 | Release: 1 |
246f18d8 | 10 | License: LGPL v2.1 |
389c596f | 11 | Group: Libraries |
bbc5e380 JB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.42/libxml++-%{version}.tar.xz |
13 | # Source0-md5: 1abc3b5b56bf7b3dfbe743cd1496550d | |
389c596f | 14 | URL: http://libxmlplusplus.sourceforge.net/ |
7c92b81a | 15 | BuildRequires: autoconf >= 2.59 |
077319f3 | 16 | BuildRequires: automake >= 1:1.11 |
bbc5e380 | 17 | BuildRequires: doxygen >= 1:1.8.9 |
077319f3 | 18 | BuildRequires: glibmm-devel >= 2.32.0 |
bbc5e380 | 19 | BuildRequires: libstdc++-devel >= 6:4.7 |
077319f3 | 20 | BuildRequires: libtool >= 2:2.2.6 |
7e17c1b6 | 21 | BuildRequires: libxml2-devel >= 1:2.7.7 |
bbc5e380 | 22 | BuildRequires: mm-common >= 0.9.10 |
45b69c6a | 23 | BuildRequires: pkgconfig |
bbc5e380 | 24 | BuildRequires: rpmbuild(macros) >= 1.752 |
077319f3 JB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
27 | Requires: glibmm >= 2.32.0 | |
7e17c1b6 | 28 | Requires: libxml2 >= 1:2.7.7 |
5be2680a | 29 | Obsoletes: libxml++ < 3.0 |
389c596f | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | libxml++ is a C++ interface for the libxml XML parser library. | |
34 | ||
aa03bc31 | 35 | %description -l pl.UTF-8 |
389c596f | 36 | libxml++ jest interfejsem C++ do biblioteki libxml. |
37 | ||
38 | %package devel | |
39 | Summary: Header files for libxml++ | |
1e547f6f | 40 | Summary(pl.UTF-8): Pliki nagłówkowe do libxml++ |
389c596f | 41 | Group: Development/Libraries |
fade074c | 42 | Requires: %{name} = %{version}-%{release} |
077319f3 | 43 | Requires: glibmm-devel >= 2.32.0 |
6d50d942 | 44 | Requires: libstdc++-devel >= 6:4.6 |
7e17c1b6 | 45 | Requires: libxml2-devel >= 1:2.7.7 |
5be2680a | 46 | Obsoletes: libxml++-devel < 3.0 |
389c596f | 47 | |
48 | %description devel | |
49 | Header files for libxml++. | |
50 | ||
aa03bc31 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe do libxml++. | |
389c596f | 53 | |
54 | %package static | |
55 | Summary: Static libxml++ libraries | |
1e547f6f | 56 | Summary(pl.UTF-8): Biblioteka statyczna libxml++ |
389c596f | 57 | Group: Development/Libraries |
fade074c | 58 | Requires: %{name}-devel = %{version}-%{release} |
5be2680a | 59 | Obsoletes: libxml++-static-devel < 3.0 |
389c596f | 60 | |
61 | %description static | |
62 | Static libxml++ libraries. | |
63 | ||
aa03bc31 | 64 | %description static -l pl.UTF-8 |
389c596f | 65 | Biblioteka statyczna libxml++. |
66 | ||
e4cb5033 MB |
67 | %package apidocs |
68 | Summary: libxml++ API documentation | |
69 | Summary(pl.UTF-8): Dokumentacja API libxml++ | |
70 | Group: Documentation | |
5be2680a | 71 | Obsoletes: libxml++-apidocs < 3.0 |
bbc5e380 | 72 | %{?noarchpackage} |
e4cb5033 MB |
73 | |
74 | %description apidocs | |
75 | libxml++ API documentation. | |
76 | ||
77 | %description apidocs -l pl.UTF-8 | |
78 | Dokumentacja API libxml++. | |
79 | ||
80 | %package examples | |
81 | Summary: libxml++ - example programs | |
82 | Summary(pl.UTF-8): libxml++ - przykładowe programy | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
5be2680a | 85 | Obsoletes: libxml++-examples < 3.0 |
e4cb5033 MB |
86 | |
87 | %description examples | |
88 | libxml++ - example programs. | |
89 | ||
90 | %description examples -l pl.UTF-8 | |
91 | libxml++ - przykładowe programy. | |
92 | ||
389c596f | 93 | %prep |
5be2680a | 94 | %setup -q -n libxml++-%{version} |
389c596f | 95 | |
96 | %build | |
bbc5e380 JB |
97 | mm-common-prepare --copy --force |
98 | %{__libtoolize} | |
99 | %{__aclocal} -I build | |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
88f0bee2 | 103 | %configure \ |
bbc5e380 | 104 | --disable-silent-rules \ |
5be2680a | 105 | %{?with_static_libs:--enable-static} |
389c596f | 106 | %{__make} |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
e4cb5033 | 110 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
389c596f | 111 | |
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
e4cb5033 | 115 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
54f30e5c | 116 | |
7c92b81a AF |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxml++-2.6.la |
118 | ||
389c596f | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
fade074c | 127 | %doc AUTHORS ChangeLog NEWS README |
246f18d8 | 128 | %attr(755,root,root) %{_libdir}/libxml++-2.6.so.*.*.* |
a282ddb3 | 129 | %attr(755,root,root) %ghost %{_libdir}/libxml++-2.6.so.2 |
389c596f | 130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
246f18d8 | 133 | %attr(755,root,root) %{_libdir}/libxml++-2.6.so |
e4cb5033 | 134 | %{_libdir}/libxml++-2.6 |
246f18d8 JB |
135 | %{_includedir}/libxml++-2.6 |
136 | %{_pkgconfigdir}/libxml++-2.6.pc | |
389c596f | 137 | |
5be2680a | 138 | %if %{with static_libs} |
389c596f | 139 | %files static |
140 | %defattr(644,root,root,755) | |
246f18d8 | 141 | %{_libdir}/libxml++-2.6.a |
5be2680a | 142 | %endif |
e4cb5033 MB |
143 | |
144 | %files apidocs | |
145 | %defattr(644,root,root,755) | |
259c8712 | 146 | %{_datadir}/devhelp/books/libxml++-2.6 |
5be2680a | 147 | %{_docdir}/libxml++-2.6 |
e4cb5033 MB |
148 | |
149 | %files examples | |
150 | %defattr(644,root,root,755) | |
151 | %{_examplesdir}/%{name}-%{version} |